package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_vehicle_bone_skill_up", autoSave = true, desc = "珍兽魂骨技能提升", uploadCk = true)
public class LogVehicleBoneSkillUp extends ServerBaseLog {
    @FieldTypeAnnotation(desc = "玩家ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "魂骨唯一id", dataAttribute = "")
    private int bondId;
    @FieldTypeAnnotation(desc = "魂骨配置id", dataAttribute = "")
    private int boneConfigId;
    @FieldTypeAnnotation(desc = "魂骨阶位", dataAttribute = "")
    private int baseLv;
    @FieldTypeAnnotation(desc = "魂骨技能id", dataAttribute = "")
    private int skillId;
    @FieldTypeAnnotation(desc = "升级后等级", dataAttribute = "")
    private int skillLv;
    @FieldTypeAnnotation(desc = "消耗的道具")
    private String costItem;
    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogVehicleBoneSkillUp(long userId, int bondId, int boneConfigId, int baseLv, int skillId, int skillLv, String costItem) {
        this.userId = userId;
        this.bondId = bondId;
        this.boneConfigId = boneConfigId;
        this.baseLv = baseLv;
        this.skillId = skillId;
        this.skillLv = skillLv;
        this.costItem = costItem;
        this.logTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
